
const { log } = require('console');
const { Controller } = require('egg');
const fs = require('fs');
const path = require('path');
class teacherdata extends Controller {
  async get_teacherdata() {
    const { ctx } = this;
    const teacherdata = await this.app.mysql.query('SELECT * FROM teacher');
    ctx.body = teacherdata;
    console.log(teacherdata);
  }
}
module.exports = teacherdata;
